﻿using AutoMapper;
using B.S.DataBase.Domain;
using B.S.DataBase.Write.API.Application.Commands;
using B.S.DataBase.Write.API.Application.Commands.Update;

namespace B.S.DataBase.Write.API
{
    public class MapperProfile:Profile
    {
        public MapperProfile()
        {
            CreateMap<CreateProductCommand,Product>().ReverseMap();
            CreateMap<CreateProductTypeCommand, ProductType>().ReverseMap();
            CreateMap<CreateFarmCommand, Farm>().ReverseMap();
            CreateMap<CreateFirmCommand, Firm>().ReverseMap();
            CreateMap<CreateKillCommand, Kill>().ReverseMap();
            CreateMap<CreateFirmGongsiCommand, Firm>().ReverseMap();
            CreateMap<CreateprocessingCommand, Firm>().ReverseMap();
            CreateMap<CreateSupplierCommand, Supplier>().ReverseMap();
            CreateMap<CreateTeamCommand, Supplier>().ReverseMap();
            CreateMap<CreateImmuneCommand, Immune>().ReverseMap();
            CreateMap<UpdateImmuneCommand, Immune>().ReverseMap();
            CreateMap<DeletedImmuneCommand, Immune>().ReverseMap();
            CreateMap<UpdateProductCommand, Product>().ReverseMap();
            CreateMap<DeletedProductCommand, Product>().ReverseMap();
        }
    }
}
